<!DOCTYPE html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="my-taglib" prefix="my"%>  
<html lang="en" class="rgconf_page">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <%--     <title>${categoty }</title> --%>
            <title>${newstypename }_法和药业</title>
       <!-- Bootstrap framework -->
            <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
            <link rel="stylesheet" href="bootstrap/css/bootstrap-responsive.min.css" />
        <!-- gebo blue theme-->
            <link rel="stylesheet" href="css/blue.css" id="link_theme" />
        <!-- breadcrumbs-->
            <link rel="stylesheet" href="lib/jBreadcrumbs/css/BreadCrumb.css" />
        <!-- tooltips-->
            <link rel="stylesheet" href="lib/qtip2/jquery.qtip.min.css" />
        <!-- notifications -->
            <link rel="stylesheet" href="lib/sticky/sticky.css" />
        <!-- notifications -->
            <link rel="stylesheet" href="lib/sticky/sticky.css" />    
        <!-- splashy icons -->
            <link rel="stylesheet" href="img/splashy/splashy.css" />
		<!-- colorbox -->
            <link rel="stylesheet" href="lib/colorbox/colorbox.css" />	

        <!-- main styles -->
            <link rel="stylesheet" href="css/style.css" />
			
            <!-- <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans" /> -->
	
        <!-- Favicon -->
            <link rel="shortcut icon" href="favicon.ico" />
            
    	   <!-- 通用css -->
         	 <link rel="stylesheet" href="css_fahe/header.css" />
         	 <link rel="stylesheet" href="css_fahe/body.css" />
         	 <link rel="stylesheet" href="css_fahe/footer.css" />
        <!--[if lte IE 8]>
            <script src="js/ie/html5.js"></script>
			<script src="js/ie/respond.min.js"></script>
        <![endif]-->
		
    </head>
    <body>
	<div id="maincont" class="clearfix1 " style="margin-top: 0px;" >
		<!-- header -->
		<%@ include file="../inc/header.jsp"%>
		
		<div class="contenter">
		<div class="subNavBottom">
				<ul style=" width:315px;" id="newstypeNav">
				<li id="subNav1">
					<a href="listnews?categoty=1">法和快讯</a>
				</li>
				<li id="subNav2">
					<a href="listnews?categoty=2">行业新闻</a>
				</li>
				<li id="subNav3">
					<a href="listnews?categoty=3">政策法规</a>
				</li>
				</ul>
		</div>
		
		<input type="hidden" name="categoty" id="categotyid" value="${categoty }">
			<div class="newscontent" id="newscontenr">
			
				<div class="subTitle">
						我的位置:
						<a href="/cdfahe/index">首页</a>
						  >  
						<a id="lv2" href="/cdfahe/listnews?categoty=1">新闻中心</a>
						  >  <span id="infospan">法和快讯</span>
				</div>
										
			  <div class="fahenews">
			  <ul>
				  <c:forEach items="${rf.items}" var="du"> 
				   <li>
				  <div class="listTime">${du.formateddate }</div>
				  <span class="listTitle"><a target="_blank" href="getnews?newsid=${du.id }">${du.name }</a></span>
				  </li>
				  </c:forEach>
				</ul> 
			  </div>
			  <my:paging curr="${rf.currentPage}" total="${rf.pageCount}" size="${rf.pageSize}" href="listnews?categoty=${categoty}"/>
			  
			</div>
		</div>
		
		
		
		<%@ include file="../inc/footer.jsp"%>
		</div>
         <script src="js/jquery.min.js"></script>
			<!-- smart resize event -->
			<script src="js/jquery.debouncedresize.min.js"></script>
			<!-- hidden elements width/height -->
			<script src="js/jquery.actual.min.js"></script>
			<!-- js cookie plugin -->
			<script src="js/jquery_cookie.min.js"></script>
			<!-- main bootstrap js -->
			<script src="bootstrap/js/bootstrap.min.js"></script>
			<script>
				$(document).ready(function(){
					/* var s = $(input[name='categoty']).val(); */
					var s = $("#categotyid").val();
					var e = 'subNav'+s;
					$('#'+e).addClass('select');
					
					if (s == 2) {
						/* $('#lv2').attr("href","/cdfahe/listnews?categoty=2"); */
						$('#infospan').html('行业新闻');
					} else if(s == 3) {
						$('#infospan').html('政策法规');
					}else{
						$('#infospan').html('法和快讯');
					}
					/* var x= $('#lv2').html(); */
					
				});
			</script>
			<script type="text/javascript">
				$(document).ready(function(){
					show();
				});
				function show(){
				   //document.getElementById("xianshi").value=<%=(String)session.getAttribute("myName")%>
				   var s="<%=session.getAttribute("username")%>"; 
				   if (s =="null") {
					   $("#loginflag").append("<a href='login'>登录</a>|<a href='regist'>注册</a>|");
					} else {
					   $("#loginflag").append(s+"<a href='logout'>退出</a>");
					}
				}
			</script>   
            <!-- validation -->
            <script src="lib/validation/jquery.validate.min.js"></script>
			<script src="js_fahe/header.js"></script>
			<script src="js_fahe/validation/registvalidation.js"></script>
    </body>
</html>
